package com.yundian.user.service.impl;

import com.yundian.user.dao.IUserDAO;
import com.yundian.user.service.IUserService;
import com.yundian.user.vo.User;



public class UserService implements IUserService {

	private IUserDAO userDAO;
	public IUserDAO getUserDAO() {
		return userDAO;
	}

	public void setUserDAO(IUserDAO userDAO) {
		this.userDAO = userDAO;
	}

	public void saveUser(User user) {
		
		userDAO.saveUser(user);
	}

	public User validateUser(String username, String password) {
		
		return userDAO.validateUser(username, password);
	}

}
